<template>
  <el-select v-model="value" placeholder="请选择" @change="changeTime">
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value">
    </el-option>
  </el-select>
</template>

<script>
  export default {
    props: {
      options: {
        typeof: Array,
        default() {
          return []
        }
      }
    },
    data() {
      return {
        value: '自然日'
      }
    },
    methods: {
      changeTime(val) {
        this.$emit('changeTime', val, this.value);
      }
    }
  }
</script>

<style scoped>
.el-select{ width: 130px;margin-right: 10px; }
</style>